package com.ruoyi.project.system.mayuan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mayuan.mapper.MayuanMapper;
import com.ruoyi.project.system.mayuan.domain.Mayuan;
import com.ruoyi.project.system.mayuan.service.IMayuanService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 马院制度Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
@Service
public class MayuanServiceImpl implements IMayuanService 
{
    @Autowired
    private MayuanMapper mayuanMapper;

    /**
     * 查询马院制度
     * 
     * @param id 马院制度ID
     * @return 马院制度
     */
    @Override
    public Mayuan selectMayuanById(Long id)
    {
        return mayuanMapper.selectMayuanById(id);
    }

    /**
     * 查询马院制度列表
     * 
     * @param mayuan 马院制度
     * @return 马院制度
     */
    @Override
    public List<Mayuan> selectMayuanList(Mayuan mayuan)
    {
        return mayuanMapper.selectMayuanList(mayuan);
    }

    /**
     * 新增马院制度
     * 
     * @param mayuan 马院制度
     * @return 结果
     */
    @Override
    public int insertMayuan(Mayuan mayuan)
    {
        return mayuanMapper.insertMayuan(mayuan);
    }

    /**
     * 修改马院制度
     * 
     * @param mayuan 马院制度
     * @return 结果
     */
    @Override
    public int updateMayuan(Mayuan mayuan)
    {
        return mayuanMapper.updateMayuan(mayuan);
    }

    /**
     * 删除马院制度对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMayuanByIds(Long[] ids)
    {
        return mayuanMapper.deleteMayuanByIds(ids);
    }

    /**
     * 删除马院制度信息
     * 
     * @param id 马院制度ID
     * @return 结果
     */
    @Override
    public int deleteMayuanById(Long id)
    {
        return mayuanMapper.deleteMayuanById(id);
    }
}